package com.miracle.service;

import java.util.concurrent.TimeUnit;

import com.miracle.cache.CacheData;

public class FillCacheThread implements Runnable {

	private int id;

	public FillCacheThread(int id) {
		this.id = id;
	}

	@Override
	public void run() {
		try {
			TimeUnit.SECONDS.sleep(3);
		} catch (InterruptedException e) {
		}
		CacheData.getInstance().update(id);
	}
}
